package com.campus.secondhand;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@MapperScan("com.campus.secondhand.mapper")  // 扫描Mapper接口（必须加，否则MyBatis找不到）
public class CampusSecondhandApplication {
    public static void main(String[] args) {
        SpringApplication.run(CampusSecondhandApplication.class, args);
        System.out.println("✅ 校园二手交易平台启动成功！访问地址：http://localhost:8080/api");
    }
}